package com.shortlink.pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@ApiModel
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user")
public class UserDO extends BaseDO{
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 3-10位字母+数字
     * 需保证唯一
     * 创建后不可修改
     */
    private String username;

    private String password;

    @ApiModelProperty("用户真实姓名")
    private String realName;

    private String phone;

    private String mail;

}
